package edu.uta.cfl.util;

public class Util {
	public static enum MSGType {
		inputParsing, failureInducing, noImprovement, notFound
	};

	/**
	 * This method prints out an error message in standard error and then exits.
	 * <p>
	 * 
	 * @param errMsg
	 *            the error message to be printed out.
	 */
	public static void showErr(String error) {
		System.err.println(error);
		System.exit(1);
	}

	public static void showMsg(String msg) {
		System.out.println(msg);
	}

	public static String getMsg(MSGType msgType) {
		switch (msgType) {
		case inputParsing:
			return "An error occured during parsing.";
		default:
			break;
		}
		return "";
	}

}
